From: Florian Müllner Date: Tue, 9 Feb 2021 20:48:39 +0000 (+0100) Subject: dash: Consider additions for separator visibility X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~427 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=9aa25eaa0b7fe85b6edead3dbb42bac8d3103aa0;p=gnome-shell.git dash: Consider additions for separator visibility The children variable holds the icons that were originally in the dash. For the separator visibility, we should consider the icons that are in the dash after the update, so we must consider additions as well as removals. Part-of: --- diff --git a/js/ui/dash.js b/js/ui/dash.js index 16893f976..6b4c114e7 100644 --- a/js/ui/dash.js +++ b/js/ui/dash.js @@ -745,7 +745,7 @@ var Dash = GObject.registerClass({ // Update separator const nFavorites = Object.keys(favorites).length; - const nIcons = children.length - removedActors.length; + const nIcons = children.length + addedItems.length - removedActors.length; if (nFavorites > 0 && nFavorites < nIcons) { if (!this._separator) { this._separator = new St.Widget({